polishing the program