Changes types method to use types filter