method works