decode instead of encode