checking if the method works