added code so lists support structs