//made changes to renderer and Service