program now working