update find function