added logic for code apporteur