resolve the download color function