optimized mapping method