removed the variable str