adding deletion for memory efficiency