[ganesh] encoding