pulled rendering out into own file