improvement to stack printer