refractor parent and child embedding