modified custom servives as depency injection