adding carls enc for comparison