`size` is declared twice in this function. Can you please declare it once at the beginning of the function?