added bit array option commented out in doji method