updating for local deletion
updating for local deletion