formatData rewrite