added mod macro