declare size as a local variable