update add 0 when n is 1