awk removed changed to loop