little improvement to thread type