changing unlock function