update for shag from previous examples