making delete work, not pretty but functional