handle case of something non-iterable being passed in