added getFrameType() method