better code in awk