added reflections to 5_pad_array