allow adding to the head

Signed-off-by: Bao Haojun <baohaojun@gmail.com>