refactor some code for FilmModel