got the mapping to work as intended some formating of output required