switching snippet to use program namespace