refactor glsequence to be more testable