perfecting awk command