edited enc.c