finish stack implement