simplified render loop as suggested