fixing usage of str.join