implementet Torch