added common.cpp