decoupled CPU usage from number of layers