fix the produce call to actually work