added a reference qualifier to improve performance.