use many-to-many mapping for index