Adapted templates according to multiple key of each annotation