combine render and update in one recursive call