moved private method callback to public