added some comments about validation