added addFrame()