improved convergence in grid layout