encoder done