created getall and get service methods