document size() and length()