made use of for loop in new_ubuntu