fixed program and graph for all records