change default n to 1 to resolve #15