do we really need to open/close php tags in consectuive lines here? (and between the two foreach loops below) - it seems kind of unncessary