printing from both threads works fine