minor improvements to frame example