stop extending the function prototype, moved all functionality into infect function