variable error fixed