updated precision script, to have cross-precision calculation