add main
add tuple iterator
change foreach