remove unnecessary (and wrong) min