delete working properly