first attempt at balancing