fix repeatablity problem