max left and max right working