refactoring of sequencesService