add ablitity to remove statdef
feature in progress