changed the code, but it's still not working

callback functions are the most annoying things. debugging is also very
unpleasant. I'm calling it a night