update endoding