update main source file