only add functions as callbacks

[#45542879]

fix by Tom Dyer, I just removed some trailing whitespace