used maxand min but no diff