A strengthening on odd cycles in graphs of given chromatic number