Fixed while loop
updated min files