added sequence to factory