kcoloring happens every function