removed useless compare func