use switch style for entities hash table