-added a console.log output when the prepare function has finished.