remove unused parts of code