replaced grep with awk :)