added generation of trigger map