fix comparison
extract function