set up more of render code