improvements in sample application.