add restriction and expandsion.