deleted not working code