emptying legacy effects for saftey