refactor min stat checking