finished UIT-3: created a way to have the allowed options filtered.