removing spurrious variable assignment