added a compare func