added checks for methods