did some validation