color mapping functions completed