improved spec definitions