improved formatting of sample