rewrote gen_jellyfish