added coloring and clear function