worked a little on the stack controller