append macro