added ad macro