creating services functionality