uncommented mapping function. commented testing function.