update the sample program