clean up typeFilter