use min library