- use xmalloc instead of malloc