delete xraylib call