protection base code.