moved bond data clear to main program