added initial validation