the common code for one project