lots of work on rendering algorithms. Still doesn't work though