kept a single echo call in for loop. removed print_r calls that were left accidentally during last commit.