oops...did it wrong. replaced method_defined? with respond_to?