result output fix