Update compile

changes the 30 first lines of code