lolutc in cdt/pdt; also fix arithmetic