adding mapping function 6