thanks~, I have changed cumbersome compare() to '==' operator