debug for passing data to decoder