small changes to sample application