move callback to named function