added macro method.