add Common function