changed local vars to live