added specs for stack and middle of stack