change data lock scope