modifying method check to use x_method