using each, parellel, and map