troubleshooting variable issue