updates to stack passing