fixed encode