render loop working