main schematic work