delete working in a bit of a dirty way