replace new_foo with init_foo