reset version var each loop