improve comparsion syntax