circuits problem