adding encoding information