route macro writing macro