shouldn't we just say if you passed `device`, let's filter on it?