initial some file and rewrite the angent function