reorganizing frame setup