improve spec initializer