bug fixed
validity test added
test data added