searching only if necessary, max-width