added missing variable declerations