implementing decoder (67