added some stuff for SRR arrays. not fully working