add spec structure