added query on types (maybe)