refactor JKapbp stuff so it uses (n,3) color arrays