new secure phase method