changed return type of sequence retrieval methods to Integer