add encode annotation