update sample program