modificar patron state