added time elapse of pid