updating course position