encode instead of decode?