encode the world