tweaking rendering a bit to remove some function calls