defined grammar helpers