add some validation