added functions to service