add for isValid()