fixed bug where I declared variables again