adding the result back into the callback