moving put_junk inside of a loop