added arithmetic quads
merged to last version