added tuple comparator