rewrote renderer. always works now.