add head and main