encoder finished