adding WALD generation