adding to encoding