format, renamed length to size to be consistent