took out comparator arguement from all functions