fixed missing bracket in sequence generation