delete parent and add previous
add relationships