adding mapping function 4