Its still 'results' whether its a vector or a WriteResult. Two letter variable names are just too short. Can you globally s/wr/results. Feel free to pick another name, though 'results' did seem fine to me.