added remove function to the service