middle part of horizontal local energy done