started common code