Edited stackArray