make api function and format structure for color management