fixed add method and fileFormatter method