moved common rendering methods to renderer utis