changed all references to 'gold' to 'memory'