map functionality implemented.