remove unused functions, reduce garbage