add functions and change gitfiles