second part of fixing the horizontal scaling