ps grep function added