shows an error

invoking should happen after defining the variable