added features to update the parent on put