remove code that was dead