pass an array to the serialiser