remove _by_type