renamed str to object