forgot to free memory, added in delete