fixes to samples