basic code for find() and compare() added