printed the list to check values
printed the list to check values