fleshed out working worm code, test no longer needed