program w/o threads, should work