tuning find reference function