added freelist in init