working again but aprts of rendering are way screwed up