fixed major spec errors