ensuring the prefID matches when the rooms are filtered