encoding is complete