add compare operation