pass back correct data in callback