updated eps
simplified comparator