implemented delete for materii