optimization notes in size()