updated code with second for loop... still needs dbugging