refactoring spaces and binary sizes