fixed program breaking issues