reverted changes for pthread