added function for coloring texts e.g. for statistics