fix compartor function with point problem, and ac online 1st