Pls use == operator instead of compare function