added mod counter