adding mapping function 3