Added declaration of variable resized

Added declaration of variable resized and semicolons