helper function for color and git