finish color function