adding xtal_generator