change to int comparison