added thread of analize and some things