adding mapping function 2