change directive to service