map functionality implemented