first part of fixing the horizontal scaling