fix check_marks method