fix the assumption that uninitialized variables are 0