filtering based on type popularity