fix for TypeError: 'str' object is not callable