simplify comapre syntax