2.2

2.2 bug fixed. what if n is less than 1? return NULL.