try again this time hopefully not compiler error after defined the variable in the right place