remove unused code parts