ignore generated files
move function definitions