use common code