enroll course functioning