Corrected usage of 'var'

Corrected usage of 'var' instead of explicit declaration