small fix to get the variable