reorganizing frame setup again