removed bad optmizations
removed the thread codes, stop working and wasn't the goal