added compare capability