added NULL to all prev-pointer, which are never used