added Thres stuff