small modifications to render