updated sample application