only change 'check_vaild_ptr'