changed the way array metadata is defined