trying to fix a str() bug