map for each reference