added find object function