changed valid? to valid