some tuning to fine energy allocation and prevent it from going above 7 bits