added some changes to srcfile.cpp