working version of worm