wrap up the code, prepare for blog note