writing SVMHelper2