.on to .once - didn't fix the memory issue though