update and add processing codes