max to maximum in indexing.jl