map function implemented.