base for the main