color sensors - code cleaning