finished encoding