update contains and sibling problems