modified arithmetic file