add relations to further improve inner core algorithm