frame-setting-read as a function