added destroy functions to the systems