add torch back in