removed unused pthread