remove minCompare and maxCompare and some Log.i