added code for showing linked variable