refactorings & Frame class