moving code to service