changed around thread priority in main