adding list conversion of Tuples inside the code at various locations