deal with edge conditions with the metadata