protect() method added