Update enc.cpp

change