add checking for updating cur position