added valdiation