now saving structured arrays