added a render function
whoops
optimized for travis