encoding wip