worked on courses page loop issue