update course related functions