reduce max k to 5 (takes too long with 12 and all cols)