got scale working with mean and median