and access the variable correctly