what the fuck; how to do generic arrays?