complete quick encode