variable assignment fix