upgraded metric to work with new symmath