editing methods signture

the methods signture is editied to be adapted to threading part.
adding thread

Not completed !