max method and tiny folding fix