add direct computation of char