stack on the base of array