turn this into a `foreach`