pureCUtils functions