added my_map and each2