remove useless files and functions