update course state