fix for "'int' object is not iterable" error