fix the type of program