adjusting sequence