made get appliances function in service