stack is now an object