remove having to create bond array in a second loop
remove debugging messages