delete invocation on size in for loop