added sequential mode