fixed dataformatting issue