clean up course model