fix sample code formatting