worked on delete, added in fergusor code