add comperator