move comments back to here from mem_select