modify the Source.cpp for testing Danise on MAC