add function reg and update info