seperated update from render for #44