modified level 6-4 program to actually work