compare incomplete

added compare function incomplete