max product now works