changed var declaration syntax