adding encoding table (I think?)