pthread attempt 1