remove unused codes; resettle codes; split filters into filters.js