added 'var'; was not working for me without it