function for course calls