solved problem for validity for n draws