allow for translation table to be passed in