made a method of its own to check deletion