add print stack, stack pair util method