fixed object not iterable errors