how to do recursive looping....