finished fixing all problems that arose on delete