decide use encode 2