minor code updates to render