add some finishing touches to sample