interesting-I had the same error as you before adding those lines but the code was fine thereafter. which line is flagged as the error line?