init dynamic stack