another helpful snippet