spec not working