use the rpm instead.  this script is taking a boatload of time