added missing do statement