added function create_var