added code for get service