working in course model persist