fixed color to make it more robust

changed that color to a recursive function