undoing qry type