added missing_data check