small changes to renderer