func: function transfer(address _to, uint _value, bytes _data)
    whenNotPaused
    returns (bool success) {
      require(_to != address(0));
      require(!frozenAccount[_to]);
      require(!frozenAccount[msg.sender]);
      if(isContract(_to)) {
          return transferToContract(_to, _value, _data);
      }
      else {
          return transferToAddress(_to, _value, _data);
      }
  }