modified shapePath scaling