added sequential and check_mode function, check_mode not working