some tweeks to rendering