scrapped down to 2 precomputed tables