source.decode implementation complete