run a second function only after the first function is completely finished
By Leon Durgan at Apr 18 2021