made more readable with help of a palette