deletion working properly