add log to decribe the whole process.