Fixed spec not as dict + return