modified encoding