fixed issue with aliasing and arrays