upload helper

function down grade color