fixed up delete() method, i think