Rewrite math to scales