Change the init function aftert the discussion with hongxia