fixed result printing