add lockpattern