simplifying
ref
reverted some stuff
new render algorithm