alter sample code.