fixed compiler comparison warnings