fixed small bug where I was doing string compare instead of int compare