modified update method and added courses