seperated functions and created new web services