move marker to the right place