refactoring width