Error shwoing

error showing with //
Updated to references

references updat to clean up main class