added a find function