with long note delay removing, remove unneccessory code