better output
fix access violation error