replace norm by L1dist/L2dist and devectorize checkrule()
loop out check also for polish