added empty list code