remove calls to size from code