removed threex code