added check for respond_to?. It may not be necessary, though.