added case n=4