add variable scope tracking