clarified region mask function