added update functionality for children