fix for sequencing functions