added inverse to scale
cleaned up scale