fixes to the sample