nearly done creating the precomputed lookups