here are the 3 codes i need to change to shorten execution time.
any help will be greatly appreciated.