update etc encode