styling and create_insts_func changes