edited exec.cpp