removed 'var' from variable definitions