same for methods