added funcs to models for videos and courses