minor changes to touching memory