fixed assignment in variable declaration