fix result printing