fixed service interface
improving code