map method implemented