fix for cc mapping function