removed extra str variable