showname variable is getting lost