done, just need to figure out how to clear memory better