replaced grepping with awk