implement protect word and unprotect word