remove lock funcion from user