saved 100 bytes, didn't really improve speed at all (at least if you take into account table gen at the beginning)