fixing data printing