adding freelist structure