make cursor update better