improved use of awk