adding spaces in anonymous callback functions