code improvement(synccoursemembers new variable and general object behaviour to array conversion)