take out ngmax min