set populate logic in a service to be used externaly