Redundant array creation removed