changed static to self keyword in Services.