finish basic funciton of service