comments function with 'mem = 0', which is NOT used at all