improve awk scripts