Which of the following is the most important purpose of handwashing