using local variable max and then assigning it to this.max - 442540c3244a9df2833a56a8937516a1ba471b6a