iterate over resources and alter them