with threads
without threads
minor changes