updated functions with courseLaunched