begin to fix minmin problem