now using preprocessor to add bond code