added awk script to calc avg weights