seems to only work the first time; moving done()