add ability to remove statdefinition