used pgrep instead of pidof