basic threading, small output bug