need to test for stack > 1 not 1