change mod for numbers to mod for bigint, p4