correct lost $data var