cleaning up colors
added warning function