edit for run many times