trying-to-solve-the-reference-error