change sleep before parsing the pid and int compair to string