creating qry_type_ia_safety