symplify the enc scheme
code reduction