implemented append_map_