create entity structure