fixed program from sparql