updates, recursion not working