grade encode complete