create_and_reg