a bit silly, contents.len should be enough