added compare operation