tested the program, it seems to work, but testing fails