implemented log/linear scale switch