what happes is the subsequent functions don't wait for the foregoing to finish.