change #ccc and #fff to variables