refactored spec boxes