made the to_callback() return a value