proper deletion handling