fixed error in create_args function