improved deletion
working delete socket