added square stack