stack printer fixed up