Add function foldSibling and foldSiblineInverse. check region before selectRegion