max inf working with []