fixed sequence method to return a sequence object instead of a string