before fixing n and n-1 boundary