refactor at FileController