add minor validation