changed post-fix in sleeping_threads_update loop to pre-fix