Simplify getScale method

Make getScale function clearer