updated the awk script