adjust find function