remove unused MainPID var