alter note sample code.