rename encoder to decoder