build function with main scripts
repairing commits