adding mapping function 7