add structures for entity and relation