now we can handle stack