fixed arraystack error found in hw 13